package org.esk.dablog.gwt.support;

import org.springframework.web.servlet.mvc.Controller;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.Servlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * This class
 * User: esk
 * Date: 04.01.2007
 * Time: 1:16:01
 * $Id:$
 */
public class ServletWrapper implements Controller {
    private Servlet servlet;


    public ModelAndView handleRequest(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws Exception {
        servlet.service(httpServletRequest, httpServletResponse);
        return null;
    }

    public void setServlet(Servlet servlet) {
        this.servlet = servlet;
    }
}
